import { http, http2 } from '../utils/request.js'

const api = '/bfferp/extjs';
var url = {
  userLogin: api + "/v1/auth/info",
  getToken: api + "/v1/auth/login"
}
module.exports = {
  userLogin(code) {
    return http({
      url: url.userLogin,
    })
  },
  getToken(userName, password) {
    return http2({
      url: url.getToken + '?userName=' + userName + '&password=' + password,
    })
  },
}